﻿@model MVC.Models.Crianca

@{
    ViewBag.Title = "EscolherCrianca";
    
}

<h2>EscolherCrianca</h2>



@using (Html.BeginForm()) {
    <fieldset>
        <legend>Crianca</legend>
                   
       
       

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Nome, (IEnumerable<SelectListItem>)ViewData["Criancas"])           
        </div>

          <p>
            <input type="submit" value="Escolher" />
        </p>

</fieldset>
}
<br />
<div>
    @Html.ActionLink("Back to HomeEE", "Index")
</div>
